Create an Intersection of SetsΒΆ

S3 = S1 & S2

Create an Intersection of Sets.
#Intersection
S1 = set(["green", "blue"])
S2 = set(["blue", "yellow"])

S3 = S1 & S2
print(S3)                              # {'blue'}